<?php
/**
Template Name: Sidebar + Content + Sidebar
 * @package WordPress
 * @subpackage Freshine
 * @since Freshine 2.0.0
*/
?>

<?php get_header(); ?>
			
	<div id="f9-mainbody" class="wrap">
		<div class="main clearfix">
			<div id="f9-sidebar-left" class="widget-area">
			<?php if (is_active_sidebar( 'sidebar-left' )) : ?>
			<?php dynamic_sidebar( 'sidebar-left' ); ?>
			<?php else : ?>
				<div class="widget widget_text"><h2 class="widget_title"><span>Sample left widget</span></h2>
				<div class="textwidget">
				<p>This widget be displayed because you haven't any widget in sidebar left. To add new widgets you can access to WP Admin > Appearance > Widgets</p>
				</div>
				</div>
			<?php endif; ?>
			</div>
			<div id="f9-container" class="normal">
				<div id="f9-content">

                    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

                    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                        <?php if ( is_front_page() ) { ?>
                            <h2 class="entry-title"><?php the_title(); ?></h2>
                        <?php } else { ?>
                            <h1 class="entry-title"><?php the_title(); ?></h1>
                        <?php } ?>
            
                        <div class="entry-content">
                            <?php the_content(); ?>
                            <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'f9vn' ), 'after' => '</div>' ) ); ?>
                            <?php edit_post_link( __( 'Edit', 'f9vn' ), '<span class="edit-link">', '</span>' ); ?>
                        </div><!-- .entry-content -->
                    </div><!-- #post-## -->
					<?php endwhile; ?>
				</div><!-- #f9-content -->
			</div><!-- #f9-container -->
			<div id="f9-sidebar-right" class="widget-area">
			<?php if (is_active_sidebar( 'sidebar-right' )) : ?>
			<?php dynamic_sidebar( 'sidebar-right' ); ?>
			<?php else : ?>
				<div class="widget widget_text"><h2 class="widget_title"><span>Sample right widget</span></h2>
					<div class="textwidget">
					<p>This widget be displayed because you haven't any widget in sidebar right. To add new widgets you can access to WP Admin > Appearance > Widgets</p>
					</div>
				</div>
			<?php endif; ?>
			</div>
		</div>
	</div><!-- #f9-mainbody -->

<?php get_footer(); ?>